package com.jming.jike.service.front;

import com.jming.jike.common.PageResult;
import com.jming.jike.dto.front.PayDTO;
import com.jming.jike.vo.front.OrdersDetailVO;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/05/10
 */
public interface FrontOrdersService {

    /**
     * 创建订单
     *
     * @param
     * @return String
     * @Author jinming.zhang
     * @Date 2022/5/10
     */
    String createOrders();

    /**
     * 支去结算(支付成功返回订单号)
     *
     * @param payDTO
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/5/20
     */
    String pay(PayDTO payDTO);

    /**
     * 取消订单
     *
     * @param orderId
     * @return Boolean
     * @Author jinming.zhang
     * @Date 2022/5/24
     */
    Boolean cancelOrder(String orderId);

    /**
     * 分页查询订单列表
     *
     * @param pageIndex
     * @param pageSize
     * @return PageResult<OrdersDetailVO>
     * @Author jinming.zhang
     * @Date 2022/5/24
     */
    PageResult<OrdersDetailVO> pageOrders(Integer pageIndex, Integer pageSize);

    /**
     * 查询订单详情
     *
     * @param orderId
     * @return OrdersDetailVO
     * @Author jinming.zhang
     * @Date 2022/5/25
     */
    OrdersDetailVO orderDetail(String orderId);
}
